package com.hanthink.system.service.impl.pc;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hanthink.system.domain.pc.EmResourceCallFault;
import com.hanthink.system.mapper.EmResourceCallFaultMapper;
import com.hanthink.system.service.pc.IEmResourceCallFaultService;


/**
 * 问题描述Service业务层处理
 * 
 * @author hanthink
 * @date 2021-01-25
 */
@Service
public class EmResourceCallFaultServiceImpl implements IEmResourceCallFaultService 
{
    @Autowired
    private EmResourceCallFaultMapper emResourceCallFaultMapper;

    /**
     * 查询问题描述
     * 
     * @param id 问题描述ID
     * @return 问题描述
     */
    @Override
    public EmResourceCallFault selectEmResourceCallFaultById(Long id)
    {
        return emResourceCallFaultMapper.selectEmResourceCallFaultById(id);
    }

    /**
     * 查询问题描述列表
     * 
     * @param emResourceCallFault 问题描述
     * @return 问题描述
     */
    @Override
    public List<EmResourceCallFault> selectEmResourceCallFaultList(EmResourceCallFault emResourceCallFault)
    {
        return emResourceCallFaultMapper.selectEmResourceCallFaultList(emResourceCallFault);
    }

    /**
     * 新增问题描述
     * 
     * @param emResourceCallFault 问题描述
     * @return 结果
     */
    @Override
    public int insertEmResourceCallFault(EmResourceCallFault emResourceCallFault)
    {
        return emResourceCallFaultMapper.insertEmResourceCallFault(emResourceCallFault);
    }

    /**
     * 修改问题描述
     * 
     * @param emResourceCallFault 问题描述
     * @return 结果
     */
    @Override
    public int updateEmResourceCallFault(EmResourceCallFault emResourceCallFault)
    {
        return emResourceCallFaultMapper.updateEmResourceCallFault(emResourceCallFault);
    }

    /**
     * 批量删除问题描述
     * 
     * @param ids 需要删除的问题描述ID
     * @return 结果
     */
    @Override
    public int deleteEmResourceCallFaultByIds(Long[] ids)
    {
        return emResourceCallFaultMapper.deleteEmResourceCallFaultByIds(ids);
    }

    /**
     * 删除问题描述信息
     * 
     * @param id 问题描述ID
     * @return 结果
     */
    @Override
    public int deleteEmResourceCallFaultById(Long id)
    {
        return emResourceCallFaultMapper.deleteEmResourceCallFaultById(id);
    }
}
